package ncme.auto.framework.core.entities.aspect;

import ncme.auto.framework.core.entities.ResMsg;
import ncme.auto.framework.core.services.Impl.base.BaseReflectService;

import java.util.HashMap;
import java.util.Map;

/**
 * @author sjh
 */
public class AspectInfo {

    private Map<String,Object> parameter1 = new HashMap<>();

    private RequestInfo requestInfo = new RequestInfo();

    private AnnotationInfo annotationInfo = new AnnotationInfo();

    private ParameterInfo parameterInfo = new ParameterInfo();

    private MapperInfo mapperInfo = new MapperInfo();

    private BaseReflectService<?> baseReflectService;

    private ResMsg beforeResult;

    private ResMsg autoResult;

    private Map<String, Object> otherInfo = new HashMap<>();

    @Override
    public String toString() {
        return "AspectInfo{" +
                "parameter1=" + parameter1 +
                ", requestInfo=" + requestInfo +
                ", annotationInfo=" + annotationInfo +
                ", parameterInfo=" + parameterInfo +
                ", mapperInfo=" + mapperInfo +
                ", baseReflectService=" + baseReflectService +
                ", beforeResult=" + beforeResult +
                ", autoResult=" + autoResult +
                ", otherInfo=" + otherInfo +
                '}';
    }

    public Map<String, Object> getParameter1() {
        return parameter1;
    }

    public void setParameter1(Map<String, Object> parameter1) {
        this.parameter1 = parameter1;
    }

    public RequestInfo getRequestInfo() {
        return requestInfo;
    }

    public void setRequestInfo(RequestInfo requestInfo) {
        this.requestInfo = requestInfo;
    }

    public AnnotationInfo getAnnotationInfo() {
        return annotationInfo;
    }

    public void setAnnotationInfo(AnnotationInfo annotationInfo) {
        this.annotationInfo = annotationInfo;
    }

    public ParameterInfo getParameterInfo() {
        return parameterInfo;
    }

    public void setParameterInfo(ParameterInfo parameterInfo) {
        this.parameterInfo = parameterInfo;
    }

    public BaseReflectService<?> getBaseAutoService() {
        return baseReflectService;
    }

    public void setBaseAutoService(BaseReflectService<?> baseReflectService) {
        this.baseReflectService = baseReflectService;
    }

    public ResMsg getBeforeResult() {
        return beforeResult;
    }

    public void setBeforeResult(ResMsg beforeResult) {
        this.beforeResult = beforeResult;
    }

    public ResMsg getAutoResult() {
        return autoResult;
    }

    public void setAutoResult(ResMsg autoResult) {
        this.autoResult = autoResult;
    }

    public Map<String, Object> getOtherInfo() {
        return otherInfo;
    }

    public void setOtherInfo(Map<String, Object> otherInfo) {
        this.otherInfo = otherInfo;
    }

    public MapperInfo getMapperInfo() {
        return mapperInfo;
    }

    public void setMapperInfo(MapperInfo mapperInfo) {
        this.mapperInfo = mapperInfo;
    }
}
